package com.gree.scmservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;


//@EnableDistributedTransaction  // 事务注解
@SpringBootApplication
//@EnableEurekaClient
//@EnableScheduling
//@EnableResourceServer
@EnableDiscoveryClient
@EnableHystrix
@EnableFeignClients(basePackages = {"com.gree"})
@ComponentScan({"com.gree.*"}) //读取配置文件,包含了feign工具类中的配置
@EnableTransactionManagement
public class GscmServiceApplication {
    public static void main(String[] args) {
        System.setProperty("nacos.logging.default.config.enabled","false");
        SpringApplication.run(GscmServiceApplication.class);
    }

}
